CREATE TABLE [dbo].[TA_Categoria](
	[IdCategoria] [int] IDENTITY(1,1) NOT NULL,
	[Nombre] [varchar](200) NULL,
	[IdCuenta] [int] NULL,
	[Color] [varchar](50) NULL,
 CONSTRAINT [PK_TA_Categoria] PRIMARY KEY CLUSTERED 
(
	[IdCategoria] ASC
)WITH (PAD_INDEX = OFF, STATISTICS_NORECOMPUTE = OFF, IGNORE_DUP_KEY = OFF, ALLOW_ROW_LOCKS = ON, ALLOW_PAGE_LOCKS = ON) ON [PRIMARY]
) ON [PRIMARY]

GO

SET ANSI_PADDING OFF
GO

ALTER TABLE [dbo].[TA_Categoria]  WITH CHECK ADD  CONSTRAINT [FK_TA_Categoria_TA_Cuenta] FOREIGN KEY([IdCuenta])
REFERENCES [dbo].[TA_Cuenta] ([IdCuenta])
GO

ALTER TABLE [dbo].[TA_Categoria] CHECK CONSTRAINT [FK_TA_Categoria_TA_Cuenta]
GO


